Class OSPFNeighborImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.OSPFNeighborImpl
All Implemented Interfaces:
IPCData, OSPFNeighbor

public class OSPFNeighborImpl extends IPCDataImpl implements OSPFNeighbor
  • Field Details

    • routerId

      protected IPAddress routerId
    • address

      protected IPAddress address
    • port

      protected String port
    • priority

      protected Short priority
    • state

      protected OSPFNeighborState state
    • option

      protected Short option
    • dr

      protected IPAddress dr
    • backupDr

      protected IPAddress backupDr
    • deadInterval

      protected Short deadInterval
    • areaId

      protected IPAddress areaId
    • isMaster

      protected boolean isMaster
    • seqNumber

      protected int seqNumber
    • isVirtual

      protected boolean isVirtual
  • Constructor Details

    • OSPFNeighborImpl

      public OSPFNeighborImpl()
  • Method Details

    • getRouterId

      public IPAddress getRouterId()
      Specified by:
      getRouterId in interface OSPFNeighbor
      Returns:
      IPAddress Returns a IPAddress
    • setRouterId

      public void setRouterId(IPAddress routerId)
      Specified by:
      setRouterId in interface OSPFNeighbor
      Parameters:
      routerId - Takes in a parameter of routerId
    • getAddress

      public IPAddress getAddress()
      Specified by:
      getAddress in interface OSPFNeighbor
      Returns:
      IPAddress Returns a IPAddress
    • setAddress

      public void setAddress(IPAddress address)
      Specified by:
      setAddress in interface OSPFNeighbor
      Parameters:
      address - Takes in a parameter of address
    • getPort

      public String getPort()
      Specified by:
      getPort in interface OSPFNeighbor
      Returns:
      String Returns a String
    • setPort

      public void setPort(String port)
      Specified by:
      setPort in interface OSPFNeighbor
      Parameters:
      port - Takes in a parameter of port
    • getPriority

      public Short getPriority()
      Specified by:
      getPriority in interface OSPFNeighbor
      Returns:
      Short Returns a Short
    • setPriority

      public void setPriority(Short priority)
      Specified by:
      setPriority in interface OSPFNeighbor
      Parameters:
      priority - Takes in a parameter of priority
    • getState

      public OSPFNeighborState getState()
      Specified by:
      getState in interface OSPFNeighbor
      Returns:
      OSPFNeighborState Returns a OSPFNeighborState
    • setState

      public void setState(OSPFNeighborState state)
      Specified by:
      setState in interface OSPFNeighbor
      Parameters:
      state - Takes in a parameter of state
    • getOption

      public Short getOption()
      Specified by:
      getOption in interface OSPFNeighbor
      Returns:
      Short Returns a Short
    • setOption

      public void setOption(Short option)
      Specified by:
      setOption in interface OSPFNeighbor
      Parameters:
      option - Takes in a parameter of option
    • getDr

      public IPAddress getDr()
      Specified by:
      getDr in interface OSPFNeighbor
      Returns:
      IPAddress Returns a IPAddress
    • setDr

      public void setDr(IPAddress dr)
      Specified by:
      setDr in interface OSPFNeighbor
      Parameters:
      dr - Takes in a parameter of dr
    • getBackupDr

      public IPAddress getBackupDr()
      Specified by:
      getBackupDr in interface OSPFNeighbor
      Returns:
      IPAddress Returns a IPAddress
    • setBackupDr

      public void setBackupDr(IPAddress backupDr)
      Specified by:
      setBackupDr in interface OSPFNeighbor
      Parameters:
      backupDr - Takes in a parameter of backupDr
    • getDeadInterval

      public Short getDeadInterval()
      Specified by:
      getDeadInterval in interface OSPFNeighbor
      Returns:
      Short Returns a Short
    • setDeadInterval

      public void setDeadInterval(Short deadInterval)
      Specified by:
      setDeadInterval in interface OSPFNeighbor
      Parameters:
      deadInterval - Takes in a parameter of deadInterval
    • getAreaId

      public IPAddress getAreaId()
      Specified by:
      getAreaId in interface OSPFNeighbor
      Returns:
      IPAddress Returns a IPAddress
    • setAreaId

      public void setAreaId(IPAddress areaId)
      Specified by:
      setAreaId in interface OSPFNeighbor
      Parameters:
      areaId - Takes in a parameter of areaId
    • getIsMaster

      public boolean getIsMaster()
      Specified by:
      getIsMaster in interface OSPFNeighbor
      Returns:
      boolean Returns a boolean
    • setIsMaster

      public void setIsMaster(boolean isMaster)
      Specified by:
      setIsMaster in interface OSPFNeighbor
      Parameters:
      isMaster - Takes in a parameter of isMaster
    • getSeqNumber

      public int getSeqNumber()
      Specified by:
      getSeqNumber in interface OSPFNeighbor
      Returns:
      int Returns a int
    • setSeqNumber

      public void setSeqNumber(int seqNumber)
      Specified by:
      setSeqNumber in interface OSPFNeighbor
      Parameters:
      seqNumber - Takes in a parameter of seqNumber
    • getIsVirtual

      public boolean getIsVirtual()
      Specified by:
      getIsVirtual in interface OSPFNeighbor
      Returns:
      boolean Returns a boolean
    • setIsVirtual

      public void setIsVirtual(boolean isVirtual)
      Specified by:
      setIsVirtual in interface OSPFNeighbor
      Parameters:
      isVirtual - Takes in a parameter of isVirtual
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object